package org.kfive.nova.design.behavior.state;

/**
 * Created by admin on 2017-02-21.
 */
public class Context {

    public final static AState aState = new AState();
    public final static BState bState = new BState();

    private State currentState;

    public void setCurrentState(State state){
        this.currentState = state;
        this.currentState.setContext(this);
    }

    public void changeAstate(){
        this.currentState.changeAState();
    }

    public void changeBstate(){
        this.currentState.changeBState();
    }
}
